﻿@model TJBHJJ.Models.Down
@{
    ViewBag.Title = "修改下载";
}
<script type="text/javascript">
    var editor;
    KindEditor.ready(function (K) {
        editor = K.create('#Content',
        {
            allowFileManager: true,
            uploadJson: '/Manager/UploadImage'
        });
    });
    $(function () {
        $("#tabs").tabs();
    });
</script>
<div id="tabs">
    <ul>
        <li><a href="#tabs-1">修改下载</a></li>
    </ul>
    <div id="tabs-1">
        @using (Html.BeginForm("EditDown", "Manager",FormMethod.Post,new { enctype = "multipart/form-data" }))
        {
            @Html.ValidationSummary(true)
            @Html.HiddenFor(model => model.Id)
            @Html.HiddenFor(model => model.ClassId)
            @Html.HiddenFor(model => model.CreatDateTime)
            @Html.HiddenFor(model => model.ReadCount)
            @Html.HiddenFor(model => model.SoftSize)
            <table>
                <tr>
                    <td style="width:100px">
                        名称：
                    </td>
                    <td>
                        @Html.EditorFor(model => model.Name)
                        @Html.ValidationMessageFor(model => model.Name)
                    </td>
                </tr>
                <tr>
                    <td>
                        下载地址：
                    </td>
                    <td>
                        <input type="file" name="file" />
                        @Html.ValidationMessageFor(model => model.SoftUrl)
                    </td>
                </tr>
                <tr>
                    <td>
                        是否显示：
                    </td>
                    <td>
                        @Html.EditorFor(model => model.IsDispaly)
                        @Html.ValidationMessageFor(model => model.IsDispaly)
                    </td>
                </tr>
                <tr>
                    <td>
                        描述：
                    </td>
                    <td>@Html.TextAreaFor(model => model.Content, new { style = "width:700px;height:300px" })
                        @Html.ValidationMessageFor(model => model.Content)
                    </td>
                </tr>
            </table>
            <p>
                <input type="submit" value="保存" />
            </p>
        }
        <div>
            @Html.ActionLink("返回列表", "ListDown", new { page = (int)ViewData["pageIndex"] })
        </div>
    </div>
</div>
